package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * 终端专属资源数据表.
 * 
 * @author Administrator
 *
 */
public class SpecialResourceDatas implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String specialResDataId;

	private String resId;

	private String terminalCode;

	private String uri;

	private String uriType;

	private String openId;

	private String passwordId;

	private String password;

	private String drmId;

	private String drmPassword;

	public String getSpecialResDataId() {
		return specialResDataId;
	}

	public void setSpecialResDataId(String specialResDataId) {
		this.specialResDataId = specialResDataId == null ? null : specialResDataId.trim();
	}

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId == null ? null : resId.trim();
	}

	public String getTerminalCode() {
		return terminalCode;
	}

	public void setTerminalCode(String terminalCode) {
		this.terminalCode = terminalCode == null ? null : terminalCode.trim();
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri == null ? null : uri.trim();
	}

	public String getUriType() {
		return uriType;
	}

	public void setUriType(String uriType) {
		this.uriType = uriType == null ? null : uriType.trim();
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public String getPasswordId() {
		return passwordId;
	}

	public void setPasswordId(String passwordId) {
		this.passwordId = passwordId == null ? null : passwordId.trim();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	public String getDrmId() {
		return drmId;
	}

	public void setDrmId(String drmId) {
		this.drmId = drmId == null ? null : drmId.trim();
	}

	public String getDrmPassword() {
		return drmPassword;
	}

	public void setDrmPassword(String drmPassword) {
		this.drmPassword = drmPassword == null ? null : drmPassword.trim();
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((drmId == null) ? 0 : drmId.hashCode());
		result = prime * result + ((drmPassword == null) ? 0 : drmPassword.hashCode());
		result = prime * result + ((openId == null) ? 0 : openId.hashCode());
		result = prime * result + ((password == null) ? 0 : password.hashCode());
		result = prime * result + ((passwordId == null) ? 0 : passwordId.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((specialResDataId == null) ? 0 : specialResDataId.hashCode());
		result = prime * result + ((terminalCode == null) ? 0 : terminalCode.hashCode());
		result = prime * result + ((uri == null) ? 0 : uri.hashCode());
		result = prime * result + ((uriType == null) ? 0 : uriType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SpecialResourceDatas other = (SpecialResourceDatas) obj;
		if (drmId == null) {
			if (other.drmId != null)
				return false;
		} else if (!drmId.equals(other.drmId))
			return false;
		if (drmPassword == null) {
			if (other.drmPassword != null)
				return false;
		} else if (!drmPassword.equals(other.drmPassword))
			return false;
		if (openId == null) {
			if (other.openId != null)
				return false;
		} else if (!openId.equals(other.openId))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (passwordId == null) {
			if (other.passwordId != null)
				return false;
		} else if (!passwordId.equals(other.passwordId))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		if (specialResDataId == null) {
			if (other.specialResDataId != null)
				return false;
		} else if (!specialResDataId.equals(other.specialResDataId))
			return false;
		if (terminalCode == null) {
			if (other.terminalCode != null)
				return false;
		} else if (!terminalCode.equals(other.terminalCode))
			return false;
		if (uri == null) {
			if (other.uri != null)
				return false;
		} else if (!uri.equals(other.uri))
			return false;
		if (uriType == null) {
			if (other.uriType != null)
				return false;
		} else if (!uriType.equals(other.uriType))
			return false;
		return true;
	}

	public SpecialResourceDatas(String specialResDataId, String resId, String terminalCode, String uri, String uriType,
			String openId, String passwordId, String password, String drmId, String drmPassword) {
		super();
		this.specialResDataId = specialResDataId;
		this.resId = resId;
		this.terminalCode = terminalCode;
		this.uri = uri;
		this.uriType = uriType;
		this.openId = openId;
		this.passwordId = passwordId;
		this.password = password;
		this.drmId = drmId;
		this.drmPassword = drmPassword;
	}

	public SpecialResourceDatas() {
		super();
	}

	@Override
	public String toString() {
		return "SpecialResourceDatas [specialResDataId=" + specialResDataId + ", resId=" + resId + ", terminalCode="
				+ terminalCode + ", uri=" + uri + ", uriType=" + uriType + ", openId=" + openId + ", passwordId="
				+ passwordId + ", password=" + password + ", drmId=" + drmId + ", drmPassword=" + drmPassword + "]";
	}
}